package com.hanamaki.oop.demo12;

public class JiaoCar implements Car {

    String carType;
    int dayMoney;

    public JiaoCar(String carType) {
        if (carType.equals("别克商务舱GL8")) {
            this.dayMoney = 600;
        } else if (carType.equals("宝马550i")) {
            this.dayMoney = 500;
        }
        this.carType = carType;
    }

    @Override
    public double price(int days) {
        return days * this.dayMoney;
    }
}
